package me.magicall.db.sql.mysql;

import me.magicall.db.sql.delete.Delete;

public class MysqlDelete extends Delete {

	private MysqlLimit limit;

	@Override
	public StringBuilder appendTo(final StringBuilder sb) {
		return limit == null ? super.appendTo(sb) : limit.appendTo(super.appendTo(sb));
	}

	public MysqlLimit getLimit() {
		return limit;
	}

	public void setLimit(final MysqlLimit limit) {
		this.limit = limit;
	}

}
